import request from "@/utils/request";
const topic = "/topic";

// 查询课题管理列表
export function getListTopic(data) {
  return request({
    url: `${topic}/query`,
    method: "post",
    data: data,
  });
}

// 新增/修改课题管理
export function changeTopic(data) {
  return request({
    url: `${topic}/add`,
    method: "post",
    data: data,
  });
}

// 删除课题管理
export function delTopic(data) {
  return request({
    url: `${topic}/delete`,
    method: "post",
    data: data,
  });
}

// 查询课题管理入组条件
export function queryEntryConditionsResult(data) {
  return request({
    url: `${topic}/queryEntryConditionsResult`,
    method: "post",
    data: data,
  });
}

// 新增/修改 课题管理入组条件
export function addEntryConditionsResult(data) {
  return request({
    url: `${topic}/addEntryConditionsResult`,
    method: "post",
    data: data,
  });
}

// 查询课题管理科研路径
export function queryResearchPath(data) {
  return request({
    url: `${topic}/queryResearchPath`,
    method: "post",
    data: data,
  });
}

// 新增/修改 课题管理科研路径
export function addResearchPath(data) {
  return request({
    url: `${topic}/addResearchPath`,
    method: "post",
    data: data,
  });
}

// 查询课题组下的患者列表
export function queryDetailByTopic(data) {
  return request({
    url: `${topic}/queryDetailByTopic`,
    method: "post",
    data: data,
  });
}

// 患者入组
export function addGroup(data) {
  return request({
    url: `${topic}/addGroup`,
    method: "post",
    data: data,
  });
}

// 患者出组
export function delGroup(data) {
  return request({
    url: `${topic}/delGroup`,
    method: "post",
    data: data,
  });
}
